package com.yueyang.sojourn.server.service.sojourn.merchpic;

import com.yueyang.sojourn.server.model.po.SojournMerchPic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-17
 */
@Mapper
interface SojournMerchPicMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SojournMerchPic record);

    int insertSelective(SojournMerchPic record);

    SojournMerchPic selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SojournMerchPic record);

    int updateByPrimaryKey(SojournMerchPic record);

    void insertList(List<SojournMerchPic> records);

    void invalidByProjectId(@Param("loginUserId") long loginUserId, @Param("merchId") Long merchId);
}